<!doctype html>
<html>
    <head>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">    
        <style> html{font-size:100px;}</style>
        <title><?php echo $this->page_title; ?></title>
        <meta name="keywords" content="<?php echo $this->_meta_keywords; ?>" />
        <meta name="description" content="<?php echo $this->_meta_description; ?>"  />
        <link rel="shortcut icon" href="<?php echo G_STATIC_URL; ?>/aomas/img/common/favicon.ico?v=<?php echo G_VERSION_BUILD; ?>">
        <link rel="stylesheet" href="<?php echo G_STATIC_URL; ?>/aomas/css/m_nav.css">

        <script> 
            //屏幕适应 
            (function (win, doc) {
                if (!win.addEventListener) return;
                var html = document.documentElement;
                function setFont() {
                    var html = document.documentElement;
                    var k = 375;
                    html.style.fontSize = html.clientWidth / k * 100 + "px";
                }
                setFont();
                setTimeout(function () {
                    setFont();
                }, 300);
                doc.addEventListener('DOMContentLoaded', setFont, false);
                win.addEventListener('resize', setFont, false);
                win.addEventListener('load', setFont, false);
            })(window, document);
        </script>
        <style>
            body{
                font-size: 0.54rem;
            } 
        </style>

<script type="text/javascript">
    var _<?php echo $post_hash_var_name; ?>="<?php echo new_post_hash(); ?>";
    var G_POST_HASH=_<?php echo $post_hash_var_name; ?>;
    var G_INDEX_SCRIPT = "<?php if (get_setting('url_rewrite_enable') != 'Y') echo G_INDEX_SCRIPT; ?>";
    var G_SITE_NAME = "<?php echo addcslashes(get_setting('site_name'), '\"'); ?>";
    var G_BASE_URL = "<?php echo base_url(); if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(G_INDEX_SCRIPT, '/'); } ?>";
    var G_STATIC_URL = "<?php echo G_STATIC_URL; ?>";
    var G_UPLOAD_URL = "<?php echo get_setting('upload_url'); ?>";
    var G_USER_ID = "<?php echo $this->user_id; ?>";
    var G_USER_NAME = "<?php echo addcslashes($this->user_info['user_name'], '\"'); ?>";
    var G_UPLOAD_ENABLE = "<?php echo get_setting('upload_enable'); ?>";
    var G_UNREAD_NOTIFICATION = 0;
    var G_NOTIFICATION_INTERVAL = <?php echo intval(get_setting('unread_flush_interval')) * 1000; ?>;
    var G_CAN_CREATE_TOPIC = "<?php echo $this->user_info['permission']['create_topic']; ?>";
    var G_ADVANCED_EDITOR_ENABLE = "<?php echo get_setting('advanced_editor_enable'); ?>";

    <?php if (human_valid('question_valid_hour')) { ?>
        var G_QUICK_PUBLISH_HUMAN_VALID = true;
    <?php } ?>
</script>


<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    </head>
    <body>
        <!-- 全局头部 --> 

        <ul class="am_m_nav">
            <li>
                <a href="/">
                    <img src="<?php echo G_STATIC_URL; ?>/aomas/img/common/home.png" alt="">
                    <span>首页</span>
                </a>
            </li>
            <li>
                <a href="/product/all/">
                    <img src="<?php echo G_STATIC_URL; ?>/aomas/img/common/product.png" alt="">
                    <span>商品</span>
                </a>
            </li>
            <li>
                <a href="/cart">
                    <img src="<?php echo G_STATIC_URL; ?>/aomas/img/common/like.png" alt="">
                    <span>收藏夹</span>
                </a>
            </li>
            <li>
                <a href="/m/explore/">
                    <img src="<?php echo G_STATIC_URL; ?>/aomas/img/common/discuss.png" alt="">
                    <span>论坛</span>
                </a>
            </li>
            <li>
                <?php if ($this->user_id) { ?>
                <a href="m/people/<?php echo $this->user_info['url_token']; ?>">
                    <!--<?php echo $this->user_info['user_name']; ?>-->
                    <img src="<?php echo get_avatar_url($this->user_id, 'mid'); ?>" alt="" class="img" width="25" />
                    <span>我的</span>

                </a>
                <?php } else {?>
                <a href="/m/login/">
                    <img src="<?php echo G_STATIC_URL; ?>/aomas/img/common/login.png" alt="">
                    <span>登录</span>
                </a>
                <?php }?>

            </li>
        </ul>


